package com.pjnkj.thunder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author pjnkj
 * @since 2022-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("effect")
@ApiModel(value = "Effect对象", description = "")
public class Effect extends Model<Effect> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "类型0隐藏1顺序")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "json处理字段")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "表名")
    @TableField("tablename")
    private String tablename;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
